<template>
    <div class="message">
        <ul>
            <li v-for="item in dataList" :key="item.id">
                <router-link :to="{
                    name:'detail',
                    params:{
                        id:item.id,
                        title:item.title
                    }
                }">{{item.title}}</router-link>
            </li>
        </ul>
        <hr />
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name:'Message',
    data(){
        return {
            dataList:[
                {id:'001',title:'消息01'},
                {id:'002',title:'消息02'},
                {id:'003',title:'消息03'}
            ]    
        }
    }
}
</script>

<style>

</style>